package data;

import java.util.Comparator;

public class UserBias implements Comparator<UserBias>{
	int uid;
	double bias;
	
	public UserBias(int uid, double bias){
		this.uid = uid;
		this.bias = bias;
	}
	
	int getUid(){
		return uid;
	}
	
	double getBias(){
		return bias;
	}
	
	public int compare(UserBias ub1, UserBias ub2){
		if(ub1.getUid() > ub2.getUid()){
			return -1;
		}
		else if (ub1.getUid() < ub2.getUid()){
			return 1;
		}
		else {
			return 0;
		}
	}

}
